package com.china.school.pojo;

 import com.china.school.MyAnno;
 import org.springframework.stereotype.Component;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
 import java.rmi.RemoteException;


@MyAnno
@Component
public class User {


    @MyAnno
    public void aaaa(){
        System.out.println("aaaaaaaaaaaa");
    }


    @MyAnno
      public void doSomeThing(@MyAnno String doSomeThing ){
        System.out.println(doSomeThing);
    }
     public void eat(){
        System.out.println("我要开始吃饭了");
    }
     public void eatError() throws Exception {
//         System.out.println("我要开始吃饭了");
         throw new RemoteException("测试抛出异常");
    }


    public void show1(@MyAnno String first , String second ,String third ){
        System.out.println(first + "-----" + second + "----" + third);
    }
    public void show2( String first , @MyAnno String second ,String third ){
        System.out.println(first + "-----" + second + "----" + third);
    }
    public void show3( String first ,   String second , @MyAnno String third ){
        System.out.println(first + "-----" + second + "----" + third);
    }

}
